package org.com.myfb.action;

import org.com.myfb.service.StudentsServiceInter;

import com.opensymphony.xwork2.ActionSupport;

public class QuerryStudentsAction extends ActionSupport{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String data;
	private StudentsServiceInter studentsServiceImpl;
	public String getData() {
		return data;
	}
	public void setData(String data) {
		this.data = data;
	}
	public StudentsServiceInter getStudentsServiceImpl() {
		return studentsServiceImpl;
	}
	public void setStudentsServiceImpl(StudentsServiceInter studentsServiceImpl) {
		this.studentsServiceImpl = studentsServiceImpl;
	}
	
	public String execute(){
		System.out.println("请求所有学生信息********************************");
		this.setData(this.getStudentsServiceImpl().querryStudents());
		System.out.println(this.getStudentsServiceImpl().querryStudents());
		return SUCCESS;
	}
}
